import java.awt.event.*;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;
import com.sun.java.swing.plaf.windows.*;

/**
 * Created by IntelliJ IDEA.
 * User: Spieler
 * Date: 11.09.2006
 * Time: 21:00:14
 * To change this template use File | Settings | File Templates.
 */
public class MyWindowListener implements WindowStateListener, PropertyChangeListener, ComponentListener, MouseListener {

    public void windowStateChanged(WindowEvent e) {
        System.out.println(e.paramString());
    }

    public void propertyChange(PropertyChangeEvent evt) {
        System.out.println(evt.getPropertyName() + " = " + evt.getNewValue());
    }

    public void componentResized(ComponentEvent e) {
        System.out.println(e.paramString());
    }

    public void componentMoved(ComponentEvent e) {
        System.out.println(e.paramString());
    }

    public void componentShown(ComponentEvent e) {
        System.out.println(e.paramString());
    }

    public void componentHidden(ComponentEvent e) {
        System.out.println(e.paramString());
    }

    public void mouseClicked(MouseEvent e) {
        System.out.println(e.getX() + " - " + e.getY());
    }

    public void mousePressed(MouseEvent e) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void mouseReleased(MouseEvent e) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void mouseEntered(MouseEvent e) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void mouseExited(MouseEvent e) {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
